package com.pig4cloud.pigx.ruralLibrary.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户浏览资源日志表
 * </p>
 *
 * @author ccl
 * @since 2025-03-10
 */
@Data
@TableName("user_resource_browsing_log")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "用户浏览资源日志表")
@NoArgsConstructor
@AllArgsConstructor
public class UserResourceBrowsingLog extends Model<UserResourceBrowsingLog> {

    private static final long serialVersionUID=1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description="id")
    private Long id;

    @Schema(description = "用户ID")
    private String openId;

    @Schema(description = "资源ID")
    private Long resourceId;

    @Schema(description = "资源类型（如图片、视频、文档等）")
    private String resourceType;

    @Schema(description = "省")
    private String province;

    @Schema(description = "市")
    private String city;

    @Schema(description = "区")
    private String area;
	@Schema(description = "街道")
	private String street;
	@Schema(description = "村")
	private String committee;

    @Schema(description = "会话ID")
    private String sessionId;

    @Schema(description = "浏览的页面URL")
    private String pageUrl;

    @Schema(description = "来源页面URL")
    private String referrerUrl;

    @Schema(description = "用户IP地址")
    private String ipAddress;

    @Schema(description = "用户代理（浏览器信息）")
    private String userAgent;

    @Schema(description = "记录创建时间")
    private Date createdAt;

    @Schema(description = "记录更新时间")
    private Date updatedAt;



}
